<!DOCTYPE html>
<!-- 提问页 -->
<!-- @author DHC -->
<!-- 2020/04/25 -->
<html style="background: white;">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no viewport-fit=cover" />
		<script src="../../Common/js/tools.js"></script>
		<script src="../../Common/js/jump.js"></script>
		<script src="../../Common/js/lib/jquery-3.4.1.min.js"></script>
		<script src="../../Common/js/lib/materialize.min.js"></script>
		<script src="../../Common/js/lib/summernote-0.8.16-dist/summernote-lite.min.js"></script>
		<script src="../../Common/js/lib/summernote-0.8.16-dist/lang/summernote-zh-CN.min.js"></script>
		<script src="../../Common/js/summernote-fix.js"></script>
		<link rel="stylesheet" href="../../Common/css/ufun.css" />
		<link rel="stylesheet" href="../../Common/css/lib/materialize.min.css">
		<link rel="stylesheet" href="../../Common/js/lib/summernote-0.8.16-dist/summernote-lite.min.css" />
		<link rel="stylesheet" href="../../Common/css/summernote-fix.css"/>
		<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
	</head>

	<body>
			<header>
				<div id="Left" class="com-btn" onclick="BackCheck(ThisBack);">
					<i class="material-icons">keyboard_arrow_left</i>
				</div>
				<div id="Title">讲座介绍</div>
				<div id="Right" class="com-btn" onclick="nextPage();">下一步</div>
			</header>
			<div class="content fixed">
				<form class="editor-form">
					<input class="title-editor" type="text" id="LecTitle" placeholder="输入讲座标题" maxlength="13"/>
					<div class="note-relative">
						<textarea rows="30" type="text" placeholder="输入讲座介绍" id="LecIntro" maxlength="300"></textarea>
					</div>
				</form>
			</div>
		</body>
	<script>
		var current;
		var title = $('#LecTitle')[0];
		var intro = $('#LecIntro');
		SummerNoteInit(intro, '输入讲座介绍');
		document.addEventListener('plusready', function() {
			GetStatusTop();
			current = plus.webview.currentWebview();
			DoShow(current, "slide-in-bottom", 300);
		});
		
		intro[0].onchange = function() {
			intro.summernote('code', intro[0].innerText);
		}
		
		function nextPage() {
			if (!CheckLength("讲座标题", title.value, 100, 5))
				return;
			if (!CheckLength("讲座介绍", intro.summernote('code'), 2147483647, 30))
				return;
			OpenWebView('2.html', 'NewLec2', {}, {
				"title": title.value,
				"intro": intro.summernote('code'),
			});
		}
	</script>
</html>
